Skip to content

Auto-close Codex sandbox branches through the PR workflow#36

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-192943-info-recodee-com-codex-auto-finish-protocol
Apr 11, 2026
Merged

Auto-close Codex sandbox branches through the PR workflow#36
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-192943-info-recodee-com-codex-auto-finish-protocol

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

Codex sandbox sessions now auto-run a finish pipeline after the agent exits: claim+commit changed files, push/create PR, attempt merge, prune worktree, and pull base updates when merge completes. The docs now codify this as the default completion protocol, and tests cover the new happy path while preserving dirty-worktree safety behavior.

Constraint: Repos without an origin remote must not fail; auto-finish now skips merge/PR and keeps manual flow available
Rejected: Always forcing merge/PR regardless of remote/gh availability | breaks local-only and offline workflows
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep agent-branch-finish as the single merge/cleanup authority; codex-agent should orchestrate, not duplicate finish logic
Tested: npm test
Tested: node --check bin/multiagent-safety.js
Tested: npm pack --dry-run
Not-tested: End-to-end merge conflict review path against live GitHub checks/permissions
@NagyVikt NagyVikt merged commit 53e43fd into main Apr 11, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260411-192943-info-recodee-com-codex-auto-finish-protocol branch April 11, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant